package com.yst.suivi.services.exceptions;

/**
 * The interface contains all the error code that can be raised by the system.
 * The plain text of the error is contains in message bundle dedicated to the
 * locale
 * 
 * @author Yannick
 * 
 */
public interface BusinessErrorCode
{
	BusinessErrorCode EMPTY_FIELD = new BusinessErrorCodeImpl(1);

	BusinessErrorCode FIELD_TOO_LONG = new BusinessErrorCodeImpl(2);

	BusinessErrorCode FIELD_ALREADY_EXISTS = new BusinessErrorCodeImpl(3);

	BusinessErrorCode WRONG_OLD_PASSWORD = new BusinessErrorCodeImpl(4);

	BusinessErrorCode WRONG_PASSWORD = new BusinessErrorCodeImpl(5);

	BusinessErrorCode WRONG_CHARACTERS = new BusinessErrorCodeImpl(6);

	BusinessErrorCode FIELD_SHOULD_BE_INTEGER = new BusinessErrorCodeImpl(7);

	BusinessErrorCode DELETED_USER_CANT_HAVE_ACTIVITY = new BusinessErrorCodeImpl(8);

	BusinessErrorCode FIELD_SHOULD_BE_NUMBER = new BusinessErrorCodeImpl(9);

	BusinessErrorCode DELETED_CONTRAT_CANT_HAVE_ACTIVITY = new BusinessErrorCodeImpl(10);

	BusinessErrorCode DELETED_ACTIVITY_CANT_HAVE_POINTAGE = new BusinessErrorCodeImpl(11);

	BusinessErrorCode UNEXPECTED_ERROR = new BusinessErrorCodeImpl(12);

	BusinessErrorCode FILE_DOESNT_EXIST = new BusinessErrorCodeImpl(13);

	BusinessErrorCode DELETED_TEAM_AFFECTED = new BusinessErrorCodeImpl(14);

	BusinessErrorCode DELETED_LOT_AFFECTED = new BusinessErrorCodeImpl(15);

	BusinessErrorCode WRONG_MAIL_FORMAT = new BusinessErrorCodeImpl(16);

	BusinessErrorCode DELETED_USER_ASSIGN_TO_PROJECT = new BusinessErrorCodeImpl(17);

	/**
	 * Returns the code of the current error.
	 * 
	 * @return
	 */
	String getCode();
}
